package com.zhengqing.wxmp.util.wchat;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Administrator
 */

@Getter
@AllArgsConstructor
public enum WchatEnums {

    /**
     * 微信接口
     */
    APP_LOGIN("小程序登录","https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code"),
    GET_ACCESSTOKEN("获取ACCESS_TOKEN","https://api.weixin.qq.com/cgi-bin/token?grant_type=%s&appid=%s&secret=%s"),
    GET_PHONE("获取手机号","https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=%s"),
    SEND_TEMPLATE_MSG("发送模板消息","https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=%s"),
    GET_IDCARDINFO("身份证识别","https://api.weixin.qq.com/cv/ocr/idcard?type=photo&img_url=%s&access_token=%s"),
    SUBSCRIBE_MESG("发送订阅消息","https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=%s"),
    ;


    private String desc;

    private String url;

}
